{{ define "content" }}
{{ range .PostList }}
<article id="post-{{ .Id }}"
    class="posts-entry fbox blogposts-list">
    <div class="blogposts-list-content">
        <header class="entry-header">
            <h2 class="entry-title"><a href="/post/{{ .Id }}"
                    rel="bookmark">{{ .Title }}</a></h2>
            <div class="entry-meta">
                <div class="blog-data-wrapper">
                    <div class="post-data-divider"></div>
                    <div class="post-data-positioning">
                        <div class="post-data-text">
                            <span class="posted-meta-name">发表于 </span>
                            <span class="posted-meta-value">{{ .CreatedAt | TimeFormat }}</span>
                            <span class="posted-meta-name">&nbsp;&nbsp;阅读量 </span>
                            <span class="posted-meta-value">{{ .Pv }}</span>
                        </div>
                    </div>
                </div>
            </div><!-- .entry-meta -->
        </header><!-- .entry-header -->

        <div class="entry-content">
            <p>{{ .Profile }}</p>

        </div><!-- .entry-content -->
    </div>
</article><!-- #post-868 -->
{{ end }}
<div class="text-center paging-navs">
    <nav class="navigation pagination" role="navigation" aria-label="Posts">
        <h2 class="screen-reader-text">Posts navigation</h2>
        <div class="nav-links">
            {{ range $i, $n := .PageNumber.List }}
                {{ if eq $n -1 }}
                <span class="page-numbers dots">&hellip;</span>
                {{ else if eq $n $.PageNumber.Current }}
                <span aria-current="page" class="page-numbers current">{{ $n }}</span>
                {{ else }}
                <a class="page-numbers" href="/?page={{ . }}">{{ $n }}</a>
                {{ end }}
            {{ end }}
            <a class="next page-numbers" href="/?page={{ .PageNumber.Next }}">Next</a>
        </div>
    </nav>
</div>
{{ end }}